<template>
  <div class="industry-exchange">
    <h2>行业交流</h2>
    <div class="content">
      <div class="exchange-item" v-for="(item, index) in exchangeItems" :key="index">
        <div class="exchange-date">{{ item.date }}</div>
        <div class="exchange-details">
          <h3>{{ item.title }}</h3>
          <p>{{ item.description }}</p>
          <div class="exchange-images" v-if="item.images && item.images.length">
            <img v-for="(img, imgIndex) in item.images" :key="imgIndex" :src="img" :alt="item.title" />
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'IndustryExchange',
  data() {
    return {
      exchangeItems: [
        {
          date: '2023-06-15',
          title: '2023年智能交通行业峰会',
          description: '中空领航参加了2023年智能交通行业峰会，分享了在数字孪生技术应用于智能交通领域的最新研究成果与实践案例，探讨了行业未来发展方向。',
          images: ['/img/exchange/summit1.jpg', '/img/exchange/summit2.jpg']
        },
        {
          date: '2023-04-22',
          title: '智慧城市发展论坛',
          description: '公司代表受邀参与了智慧城市发展论坛，针对智能出行、数字孪生、城市大脑等热点话题展开深入讨论，并展示了公司在相关领域的创新成果。',
          images: ['/img/exchange/forum1.jpg']
        },
        {
          date: '2022-12-10',
          title: '数字交通技术交流会',
          description: '中空领航举办了数字交通技术交流会，邀请了行业专家和合作伙伴共同探讨数字技术在交通领域的应用与挑战，促进了行业内的技术交流与合作。',
          images: ['/img/exchange/tech1.jpg', '/img/exchange/tech2.jpg', '/img/exchange/tech3.jpg']
        }
      ]
    };
  }
}
</script>

<style scoped>
.industry-exchange {
  padding: 20px 0;
}

.industry-exchange h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
  position: relative;
  padding-left: 15px;
}

.industry-exchange h2:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background-color: #0056b3;
}

.exchange-item {
  display: flex;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px dashed #eaeaea;
}

.exchange-date {
  width: 120px;
  padding: 10px;
  background: #f8f8f8;
  text-align: center;
  font-size: 16px;
  color: #666;
  border-left: 3px solid #0056b3;
}

.exchange-details {
  flex: 1;
  padding-left: 20px;
}

.exchange-details h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.exchange-details p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.exchange-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exchange-images img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .exchange-item {
    flex-direction: column;
  }
  
  .exchange-date {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .exchange-details {
    padding-left: 0;
  }
  
  .exchange-images img {
    width: 100%;
    height: auto;
  }
}
</style> 